package com.brand.prisd.utils;

import android.content.Context;
import android.content.DialogInterface;
import android.support.v7.app.AlertDialog;

/**
 * Created by HJ on 2018/12/13.
 */
public class AlertDialogUtil {
    public static void outTime(Context context) {
        AlertDialog dialog = new AlertDialog.Builder(context).setMessage("连接超时!")
                .setPositiveButton("查看提示", null)
                .setNegativeButton("知道了", new DialogInterface.OnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialog, int which) {
                        dialog.dismiss();
                    }
                }).create();
        dialog.setCanceledOnTouchOutside(false);
        dialog.show();
    }
}
